<template>
  <div>
    <h1>this is Mixin page</h1>

    <p>{{name}}---{{major}}--- {{city}}</p>
    <button @click="showName">显示姓名</button>
  </div>
</template>

<script>
import myMixin from "./MyMixin.vue";
export default {
  mixins: [myMixin],
  data() {
    return {
      name: "Mario",
      major: "北美程序员"
    };
  }
};
</script>